import type
{ RouteRecordRaw } from 'vue-router'

function Layout() {
  return import('@/layouts/index.vue')
}

const routes: RouteRecordRaw = {
  path: '/agent-management',
  component: Layout,
  name: 'agentManagement',
  meta: {
    title: 'Agent管理',
    icon: 'i-ant-design:setting-twotone',
  },
  children: [
    {
      path: '/agent-management/agent-config',
      name: 'agentConfigIndex',
      component: () => import('@/views/AgentConfig.vue'),
      meta: {
        title: 'Agent配置',
        menu: true,
        breadcrumb: false,
        icon: 'i-ant-design:setting-twotone',
        activeMenu: '/agent-management/agent-config',
      },
    },
    {
      path: '/agent-management/agent-websocket',
      name: 'agentWebSocketIndex',
      component: () => import('@/views/websocket.vue'),
      meta: {
        title: 'Agent连接',
        menu: true,
        breadcrumb: false,
        icon: 'i-mdi:web-sync',
        activeMenu: '/agent-management/agent-websocket',
      },
    },
  ],
}

export default routes
